﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace iLangl
{
	public abstract class BaseResponseContext : BaseContext
	{

		protected XmlNode document = null;
		public override void SetContext(object context)
		{
			base.SetContext(context);

			if (context is string)
			{
				document = new XmlDocument();
				((XmlDocument)document).LoadXml(context as String);
			}

			if (context is XmlNode)
			{
				document = context as XmlNode;
			}


			if (context is XmlDocument)
			{
				document = context as XmlDocument;
			}

		}
	}
}
